html {
  height: 100%;
}
body {
  height: 100%;
  display: flex;
  margin: 0;
}
.left {
  width: 350px;
  height: 100%;
  /* background-color: skyblue; */
}
.right {
  flex: 1;
  height: 100%;
  background-color: orange;
  /* 弹性布局 */
  display: flex;
  /* 反向从上往下 */
  flex-direction: column;
}

/* 后代选择器 限制选择器的作用范围*/
.right .header {
  height: 80px;
  /* background-color: aqua; */
}
.right .nav {
  height: 70px;
  background-color: greenyellow;
}
.right .content {
  /* 使用剩余尺寸 */
  flex: 1;
  /* y 轴超出部分的内容 滚动 */
  overflow-y: scroll;

  background-color: purple;
}

/* 左侧布局 */
.left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 40px;
  /* padding不会撑开盒子 */
  box-sizing: border-box;
}
.left .top {
  height: 200px;
  /* background-color: orange; */
}
.left .top .logo {
  width: 100px;
}

.left .bottom {
  /* height: 100px; */
  /* background-color: brown; */
}

.menu {
  /* 去 ul 的小圆点 */
  list-style: none;
  padding: 0;
}
.menu img {
  width: 30px;
  height: 30px;
}
.menu a {
  padding: 10px;
  text-decoration: none;
  color: black;
}
/* 逗号的作用是 ，多组选择器，应用相同的样式 */
.menu li,
.bottom {
  display: flex;
  align-items: center;
}

/* 右侧顶部 */

.right .header {
  display: flex;
  align-items: center;
  background-color: white;
}
.right .header .layout {
  flex: 1;
}
.right .header img {
  width: 500px;
}
.right .nav-items {
  display: flex;
  padding: 0;
  list-style: none;
}
.right .nav-items li {
  margin: 10px;
}
/* .right .nav-items */
a {
  text-decoration: none;
  color: black;
}

/* 导航 */
.right .nav {
  background-color: white;
  display: flex;
  align-items: center;
}
.right .nav a {
  margin: 20px;
}

/* 内容图片 */
.content img {
  width: 100%;
}

.toTop {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 50px;
}
